<template>
<van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
>
  <template #tags>
    <van-tag plain type="primary">标签</van-tag>
    <van-tag plain type="primary">标签</van-tag>
  </template>
  <template #footer>
   
        <van-button size="mini" @click="jian">-</van-button>
    {{ num }}
    <van-button size="mini" @click="add">+</van-button>
 
   
  </template>
</van-card>

<van-submit-bar :price="3050" button-text="结算" @click="$router.push('/login')">
   
  <van-checkbox v-model="checked">全选</van-checkbox>
  <!-- <template #tip>
    <p style="color: red;">￥29.58</p>
     <span @click="$router.push('/login')" style="color: red;">结算</span>
  </template> -->
</van-submit-bar>
</template>
<script setup>
import {ref} from 'vue'
// let jian=ref('')

// let add =ref('')
let num=ref(1)


 const jian=()=>{
    num.value--
 }
 const add=()=>{
    num.value++
 }
</script>